package com.example.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * thymeleaf实验
 * @Author:ChenZhangKun
 * @Date: 2020/9/13 22:19
 */
@Controller
public class ThymeleafController {
    @RequestMapping("/success")
    public String success(Map<String,Object> map){
        map.put("hello","你好");
        // 引入thymeleaf后->springboot会找到并解析classpath:/template/success.html
        return "success";
    }
}
